﻿<UserControl x:Class="WeatherClockWidget.WeatherAnimation.Icicle"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Name="this">
<UserControl.Resources>
        <Storyboard x:Key="GrowIcicleAnim" BeginTime="0:0:1">
            <DoubleAnimation Storyboard.TargetName="Grad1" Storyboard.TargetProperty="Offset" From="0.0" To="1" Duration="0:0:2.7" BeginTime="0:0:0.3" Completed="DoubleAnimation_Completed_1"/>
            <DoubleAnimation Storyboard.TargetName="Grad2" Storyboard.TargetProperty="Offset" From="0.0" To="1" Duration="0:0:2.7"/>
        </Storyboard>
        <Storyboard x:Key="FadeOut" BeginTime="0:0:8">
            <DoubleAnimation Storyboard.TargetName="this" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" Completed="DoubleAnimation_Completed"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid>
        <Image Name="Image">
            <Image.OpacityMask>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#FF000000" Offset="0"/>
                    <GradientStop x:Name="Grad1" Color="#FF000000" Offset="0.0"/>
                    <GradientStop x:Name="Grad2" Color="#00000000" Offset="0.0"/>
                    <GradientStop Color="#00000000" Offset="1"/>
                </LinearGradientBrush>
            </Image.OpacityMask>
        </Image>
    </Grid>
</UserControl>
